package com.haiyou.dc.aggregate.linklist.test;

public class CanNestedClassUsePrivateMember {
    private int whatever;

    int whatever2;

    class Inner {
        void access() {
            System.out.println(whatever);
        }
        void access2() {
            System.out.println(whatever2);
        }
    }

    public static void main(String[] args) {
        new CanNestedClassUsePrivateMember().new Inner().access();
        new CanNestedClassUsePrivateMember().new Inner().access2();
    }
}